package com.kita.house.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kita.common.utils.PageUtils;
import com.kita.common.utils.Query;

import com.kita.house.dao.HouseRentOutDao;
import com.kita.house.entity.HouseRentOutEntity;
import com.kita.house.service.HouseRentOutService;


@Service("houseRentOutService")
public class HouseRentOutServiceImpl extends ServiceImpl<HouseRentOutDao, HouseRentOutEntity> implements HouseRentOutService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<HouseRentOutEntity> page = this.page(
                new Query<HouseRentOutEntity>().getPage(params),
                new QueryWrapper<HouseRentOutEntity>()
        );

        return new PageUtils(page);
    }

}